package engine;

import java.io.File;



public class MainDebug {

	
    /***
     * add options:
     * 
     * -debug
     * -filter [filter for name]
     * -now
     * -help
     * 
     * @param args
     */
	public static void main(String[] args){
		String bla = System.getProperty("user.dir");
		File f = new File("src/main/resources/META-INF/log4j.xml");
		if (f.exists()) {
		} else {
			f = new File("../resources/META-INF/log4j.xml");
		}
		System.setProperty("log4j.configuration", "file:/"+f.getAbsolutePath().replace("\\", "/"));			
		System.setProperty("log4j.debug","");
		System.setProperty("log4j.path", ".");
		File workingdir = f.getParentFile().getParentFile();
		System.setProperty("user.dir", workingdir.getAbsolutePath().replace("\\", "/"));
		System.out.println("######## working dir:" + System.getProperty("user.dir"));
		args = new String[] {"-now"};
		//args = new String[] {"-debug"};
		Main.main(args);

	}
		
	
}
